package com.czy.moudle.pdm.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * 数据库表字段-实体类属性：元数据信息表
 *
 * @author 陈致远
 */
public class Field {
    /**
     * 类属性名称，由表字段名转换
     */
    private String fieldName;

    /**
     * 表字段名
     */
    private String columnName;

    /**
     * 类属性注释
     */
    private String comment;

    /**
     * 数据库字段类型  varchar int  datetime.....
     */
    private String columnType;

    /**
     * 实体类属性类型  java类型  Integer String Date ....
     */
    private String fieldType;

    /**
     * 字段长度
     */
    private long length;

    /**
     * 扩展属性
     */
    private Map<String,String> extracts = new HashMap<>();

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public Map<String, String> getExtracts() {
        return extracts;
    }

    public void setExtracts(Map<String, String> extracts) {
        this.extracts = extracts;
    }
}

